package com.mh.exception;

import org.springframework.security.core.AuthenticationException;

//自定义验证码异常
//继承springframework.security.core.AuthenticationException
public class CaptchaException extends AuthenticationException {

    //重写2个构造方法
    public CaptchaException(String msg, Throwable cause) {
        super(msg, cause);
    }

    public CaptchaException(String msg) {
        super(msg);
    }
}
